package com.ynding.spring.physical.redis.meta.service.impl;

import com.ynding.spring.physical.redis.meta.service.RedisService;
import lombok.RequiredArgsConstructor;
import org.redisson.api.RedissonClient;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

/**
 * <p> </p>
 *
 * @author ynding
 * @version 2022/6/14
 **/
@Service
@RequiredArgsConstructor
public class RedisServiceImpl implements RedisService {
    private final StringRedisTemplate stringRedisTemplate;
    private final RedissonClient redissonClient;

    @Override
    public RedisTemplate<String, String> getRedisTemplate() {
        return stringRedisTemplate;
    }

    @Override
    public RedissonClient getRedissonClient() {
        return redissonClient;
    }
}
